package com.weixin.servlet.impl;

import com.weixin.bean.MessageBean;
import com.weixin.dao.IMessageDao;
import com.weixin.servlet.IMessageServlet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


/**
 * Created by Administrator on 2018-01-23.
 */
@Service
@Transactional
public class MessageServletImpl implements IMessageServlet {

    @Autowired
    private IMessageDao messageDao ;

    @Override
    public Long saveReceive(MessageBean messageBean) {

        Long id = messageDao.insertMessageDao(messageBean);
        return id;
    }
}
